<?php include("fckeditor/fckeditor.php") ;?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">



<script language="javascript">

	

    function Cancel(){

		document.mainForm.name.value = ""

		document.mainForm.description.value = ""



    	document.mainForm.img.style.display = 'none'    	



    	document.mainForm.command.value = 0

    }



	function verify(theForm)

	{

		with(theForm)

		{

			if(title.value == ""){

				alert('Nhập tiêu đề.')

				title.focus()

				return false

			}
			
			return true

		}

	}

</script>

<link href="mystyle.css" rel="stylesheet" type="text/css">

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<table border="0" cellpadding="0" cellspacing="5" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">

  <tr> 

    <td valign="top"> <div align="center"> 

        <center>

          <form name="theForm" OnSubmit="return verify(this)" method="POST" action="addcontent.php" enctype="multipart/form-data" >
		  

            <table width="96%" align="center" cellpadding="5" cellspacing="0"  class="border" id="AutoNumber2" style="border-collapse: collapse; font-family:Tahoma; font-size:10pt">

              <tr bgcolor="#666666"> 

                <td height="25" colspan="2"> <p align="center">
                
                  
                  </p> </td>
              </tr>


			  

			  <tr>

			    <td width="15%" height="25" class="fontnormal">Tiêu đề
	              <input type="hidden" name="idcurent" value="<?=$idcurent?>"><input type="hidden" name="command" value="1"></td>

			    <td width="90%" valign="top"><input name="title2" type="text" class="textfield" id="title2" value="<?=$title?>" size="60">   </td>           
		      </tr>

			  <tr> 

                <td height="25" valign="top" class="fontnormal">Nội dung</td>

                <td valign="top"><?php
						$oFCKeditor = new FCKeditor('description2') ;
						$oFCKeditor->Height = 500;
						$oFCKeditor->Value = $desc;
						$oFCKeditor->Create() ;	
					?>                </tr>


              

		              <tr> 

                <td colspan="2"> <p align="center"> 

					<input type="hidden" name="command" value="0">

					<input type="hidden" name="currentid" value="<?=$idcurent?>">

                    <input type="submit" value="Thêm mới" name="B1" style="cursor:hand; font-family: Tahoma; font-size: 10pt; color: #FFFFFF; background-color: #666666">

                    <input name="B4" type="reset" style="cursor:hand; font-family: Tahoma; font-size: 10pt; color: #FFFFFF; background-color: #666666" onClick="Cancel()" value="Nhập lại">

                </td>
              </tr>

            </table>

          </form>

        </center>

      </div></td>

  </tr>

</table>


</body>



</html>